package User;

import Operations.*;

import java.util.Scanner;

public class AdminUser extends User{
    public AdminUser(String name) {
        super(name);
        this.ioperations= new Ioperation[]{new exitbook(),
                                           new Findbook(),
                                           new Addbook(),
                                           new Delebook(),
                                           new Showbook()};
    }
    @Override
    public int meau() {
        System.out.println(name+"欢迎来到图书小练习");
        System.out.println("*********************************");
        System.out.println("****1.查找图书        2.添加图书****");
        System.out.println("****3.删除图书        4.展示图书****");
        System.out.println("****0.退出系统                 ****");
        System.out.println("**********************************");
        System.out.print("请输入你的操作：>>");
        Scanner scanner=new Scanner(System.in);
        int choice= scanner.nextInt();
        return choice;
    }
}
